home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / Interfaces&Libraries / Interfaces / CIncludes / exception.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-17  |  792 b   |  39 lines  |  [TEXT/MPS ]

  1. /*
  2.  *  exception.h
  3.  *
  4.  *  Copyright (c) 1995 Symantec Corporation.  All rights reserved.
  5.  *
  6.  *    $Header: /standard libs/headers and src/C++ Headers/exception.h 2     9/13/95 1:55p Jmicco $
  7.  *
  8.  */
  9.  
  10. #pragma once
  11. #ifdef __cplusplus
  12.     #pragma options(exceptions)
  13. #endif
  14.  
  15. #ifndef __EXCEPTION_H
  16. #define __EXCEPTION_H 1
  17.  
  18. #ifdef macintosh 
  19.     typedef void (*terminate_handler)();
  20.     typedef void (*unexpected_handler)();
  21. #else
  22.     typedef void (__cdecl *terminate_handler)();
  23.     typedef void (__cdecl *unexpected_handler)();
  24. #endif
  25.  
  26. terminate_handler set_terminate(terminate_handler);
  27. unexpected_handler set_unexpected(unexpected_handler);
  28.  
  29. void terminate();
  30. void unexpected();
  31.  
  32. #ifdef __cplusplus
  33.     /* exception classes -- placeholders */
  34.     class exception;
  35.     class bad_exception;
  36. #endif
  37.  
  38. #endif // __EXCEPTION_H
  39.